package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.bbzn.device.client.dao.strategy.OrderStrategyMapper;

import java.util.List;

import com.bbzn.device.client.dataobject.OrderStrategy;
import com.bbzn.device.client.service.OrderStrategyService;

@Service
public class OrderStrategyServiceImpl implements OrderStrategyService {

    @Resource
    private OrderStrategyMapper orderStrategyMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return orderStrategyMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(OrderStrategy record) {
        return orderStrategyMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(OrderStrategy record) {
        return orderStrategyMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(OrderStrategy record) {
        return orderStrategyMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(OrderStrategy record) {
        return orderStrategyMapper.insertSelective(record);
    }

    @Override
    public OrderStrategy selectByPrimaryKey(Integer id) {
        return orderStrategyMapper.selectByPrimaryKey(id);
    }

    @Override
    public OrderStrategy findByChannelCode(Integer channelCode) {
        return orderStrategyMapper.findByChannelCode(channelCode);
    }

    @Override
    public int updateByPrimaryKeySelective(OrderStrategy record) {
        return orderStrategyMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(OrderStrategy record) {
        return orderStrategyMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<OrderStrategy> findByAll(OrderStrategy orderStrategy) {
        return orderStrategyMapper.findByAll(orderStrategy);
    }

    @Override
    public int updateBatch(List<OrderStrategy> list) {
        return orderStrategyMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<OrderStrategy> list) {
        return orderStrategyMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<OrderStrategy> list) {
        return orderStrategyMapper.batchInsert(list);
    }

}

